package com.skeyedu.book.mapper;


import com.skeyedu.book.entity.Book;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BookMapper {
    /**
     * 在Book表中查找所有正在出售的书
     * @return
     */
    List<Book> getBooksOnSelling();
    List<Book> getBooksByTitle(String title);
    int addBook(Book book);
}
